﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using Dynamic.Core.Utility;
namespace Dynamic.Testing.Config
{
    public class ConfigTest
    {
        public static void Go()
        {
            ConfigUtility.GetCustomSetting(ConfigUtility.DatabaseConfigFileName, "", "");

            CustomSection section = ConfigurationManager.GetSection("CustomSection")
                             as CustomSection;
            if (section != null)
            {
                string m_string = section.StringValue;
                bool m_bool = section.BoolValue;
                TimeSpan m_timespan = section.TimeSpanValue;
            }

            CustomElement element = section.Element;
            if (element != null)
            {
                DateTime dt = element.DateTimeValue;
                int i = element.IntegerValue;
            }

        }
    }
}
